﻿namespace EntityAccessImp
{
    public class ConfigServices : IConfigServices
    {
        public static IConfiguration Configuration { get; set; } = new ConfigurationBuilder()
        .SetBasePath(AppDomain.CurrentDomain.BaseDirectory)
        .Add(new JsonConfigurationSource { Path = "appsettings.json", ReloadOnChange = true })
        .Build();

        public string CityName => Configuration.GetSection("CityName").Value;

        public string AK => Configuration.GetSection("AK").Value;

        public string ConnectionString => Configuration.GetConnectionString("AdminConnectionString");
    }
}
